package cn.stylefeng.guns.modular.flowable.service;

import cn.stylefeng.guns.core.common.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.flowable.entity.ActIdMembership;
import cn.stylefeng.guns.modular.flowable.model.params.ActIdMembershipParam;
import cn.stylefeng.guns.modular.flowable.model.result.ActIdMembershipResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author gblfy
 * @since 2019-12-20
 */
public interface ActIdMembershipService extends IService<ActIdMembership> {

    /**
     * 根据用户id删除 用户和组中间数据
     *
     * @param userId
     */
    void  deleteByUserId(String userId);
    /**
     * 新增
     *
     * @author gblfy
     * @Date 2019-12-20
     */
    void add(ActIdMembershipParam param);

    /**
     * 删除
     *
     * @author gblfy
     * @Date 2019-12-20
     */
    void delete(ActIdMembershipParam param);

    /**
     * 更新
     *
     * @author gblfy
     * @Date 2019-12-20
     */
    void update(ActIdMembershipParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author gblfy
     * @Date 2019-12-20
     */
    ActIdMembershipResult findBySpec(ActIdMembershipParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author gblfy
     * @Date 2019-12-20
     */
    List<ActIdMembershipResult> findListBySpec(ActIdMembershipParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author gblfy
     * @Date 2019-12-20
     */
     LayuiPageInfo findPageBySpec(ActIdMembershipParam param);

}
